package com.wy.service.wy;

import com.wy.bean.BuildingBean;
import com.wy.model.sys.Buildings;

import java.util.List;

public interface BuildingService {


	/**
	 * 获取楼栋列表
	 * @return
	 */
	List<BuildingBean> buildingList(Integer pageSize, Integer start, Integer residenceId, String buildingName,List<String> rids);

	/**
	 * 获取住户列表的总量
	 * @return
	 */
	Integer buildingSize(Integer pageSize, Integer start,Integer residenceId,String buildingName,List<String> rids);

	/**
	 * 根据小区ID获取楼栋信息
	 * @return
	 */
	List<Buildings> getBuildingByResidenceId(Integer residenceId);

	/**
	 * 新建住户信息
	 * @param buildings
	 */
	void insertBuilding(Buildings buildings);

	/**
	 * 修改住户信息
	 * @param buildings
	 */
	void updateBuilding(Buildings buildings);

	/**
	 * 删除住户信息
	 * @param groupId
	 */
	void deleteBuilding(List<String> groupId);

	/**
	 * 获取所有的楼栋信息
	 * @return
	 */
	List<Buildings> getBuildingList();

	/**
	 * 导入时数据验证
	 * @return
	 */
	List<BuildingBean> getBuildingListImport(List<BuildingBean> list);

	void  insertBatch(List<BuildingBean> list);
}
